var express = require('express');
var router = express.Router();
const checkToken = require('../../middleware/checkToken')
const MajorController = require('../../controllers/Major')

// 创建专业
router.post('/', checkToken, MajorController.create);
// 获取专业列表
router.get('/', checkToken, MajorController.getList);
// 删除专业
router.delete('/', checkToken, MajorController.deleteOne);
// 更新专业
router.patch('/', checkToken, MajorController.updateOne);

module.exports = router;
